<template>
  <el-table
    :data="tableData"
    style="width: 100%"
  >
    <el-table-column
      :key="col.prop"
      :label="col.label"
      :prop="col.prop"
      v-for="col in tableColumns">
    </el-table-column>
    <!-- 这个插槽是用来定制化操作按钮等的 -->
    <slot></slot>
  </el-table>
</template>

<script>
	export default {
		props: {
			tableData: {
				type: Array,
				required: true
			},
			tableColumns: {
				type: Array,
				required: true
			}
		},
		data() {
			return {}
		},
		methods: {},
		watch: {},
		created() {
		}
	}
</script>

<style scoped>

</style>
